#ifndef VIDEOSLIDER_H
#define VIDEOSLIDER_H

#include <QSlider>
#include <QWidget>
#include <QMutex>

class VideoSlider : public QSlider
{
    Q_OBJECT
public:
    explicit VideoSlider (QWidget* parent = nullptr);
            ~VideoSlider ();

private:
    void mousePressEvent   (QMouseEvent *ev) override;
    void mouseMoveEvent    (QMouseEvent *ev) override;
    void mouseReleaseEvent (QMouseEvent *ev) override;

private:
    bool m_isPressed;
    QMutex* m_mutex;

public slots:
    void getseconds    (int seconds);
    void getAllSeconds (int all_seconds);

signals:
    void sendTargetTime        (int tp);
    void sendTargetAudioVolume (int av);
};

#endif // VIDEOSLIDER_H
